package com.maslyk.invitation.enums;

public enum AdditionalStatusEnum {
	BRAK		(0), 
	ZALICZKA	(1), 
	CALOSC		(2),
	NADPLATA	(3);

	private int status;

	AdditionalStatusEnum(int _status) {
		this.status = _status;
	}

	@Override
	public String toString() {
		return super.name();
	}

	public static AdditionalStatusEnum getStatus(Integer status) {
		for (AdditionalStatusEnum enm : AdditionalStatusEnum.values())
			if (enm.status == status)
				return enm;

		return null;
	}

	public int getStatus() {
		return status;
	}

}
